package com.spzx.manager.mapper;

import com.spzx.model.dto.system.AssginMenuDto;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * Project: spzx-parent
 * Package: com.spzx.manager.mapper
 * Version: 1.0
 * <p>
 * Created by  wangjiaxin  on 2024/3/1 19:44
 */
@Mapper
public interface SysRoleMenuMapper {
    //查询菜单
    public abstract List<Long> findSysRoleMenuByRoleId(Long roleId);

    //删除之前分配的菜单
    public abstract void deleteByRoleId(Long roleId);

    //保存分配数据
    public abstract void doAssign(AssginMenuDto assginMenuDto);

    //将父节点设为半开状态
    public abstract void updateSysRoleMenuIsHalf(Long menuId);
}
